﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace THenu.TinyHourseLib.EventAndDelegate
{
    public class EventProvider
    {
        public event EventHandler<EventArgs> MyEvent;
    }
    public class EvnetSubscriber
    {
        public EvnetSubscriber(EventProvider provider)
        {
            provider.MyEvent +=new EventHandler<EventArgs>(MyWeakEventHandler);
        }

        public void  MyWeakEventHandler(object sender,EventArgs e)
        {
        }
    }
   
}
